package com.jnxg.smartcommunity.fragment;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jnxg.smartcommunity.R;
import com.jnxg.smartcommunity.listener.NavListener;
import com.jnxg.smartcommunity.utils.GlideImageLoader;
import com.youth.banner.Banner;

import java.util.ArrayList;
import java.util.List;

public class ServerFragment extends BaseFragment implements View.OnClickListener ,NavListener{
   private View view;
	Banner banner =null;
	List<String> images = new ArrayList<>();
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
							 Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.fragment_server, null);
		images.add("http://p5.so.qhimgs1.com/bdr/_240_/t01b4b06ebab5396d0b.jpg");
		images.add("http://p0.so.qhimgs1.com/bdr/_240_/t0102c96cc7c0fb358c.jpg");
		images.add("http://p0.so.qhimgs1.com/bdr/_240_/t01729f8eddc84f344c.jpg");
		images.add("http://p4.so.qhimgs1.com/bdr/_240_/t01962fa8e6a10b3634.jpg");
		images.add("http://p2.so.qhimgs1.com/bdr/_240_/t011b9a40577974716e.jpg");

		banner = (Banner) view.findViewById(R.id.banner);
		//设置banner样式
		banner.setImages(images).setImageLoader(new GlideImageLoader()).start();
		return view;
	}

	@Override
	public void onResume() {
		super.onResume();

	}

	@Override
	public void onClick(View view) {

	}
	@Override
	public void onClickLeft() {

	}

	@Override
	public void onClickRight() {

	}
}
